import {createApp} from 'vue'
import './style.css'
import App from './App.vue'
import router from "./router/index.js";

// 导pinia
import {createPinia} from 'pinia'
// 创建pinia对象
let pinia = createPinia()

// 引用 elementui-plus
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


import VueVideoPlayer from '@videojs-player/vue'
import 'video.js/dist/video-js.css'


let app = createApp(App)
app.use(VueVideoPlayer)
app.use(router)
app.mount('#app')
app.use(pinia)
app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}